<template>
	<div>
		<el-form :inline="true" class="tableEditForm demo-form-inline" label-position="right" label-width="80px">
			<el-form-item style="width: 100%;" :label="$t('flowable.auditTitle')">
				<el-input style="width: 30vw;height: 20vh;" type="textarea" v-model="auditAdvice"></el-input>
			</el-form-item>
		</el-form>
	</div>
</template>

<script>
	import request from '@/utils/request'
	export default {
		name: 'commonAudit',
		props: ['taskInfo','processParam',"nodeParam",'flowDialog',"comment"],
		data() {
			return {
				auditAdvice: ""
			}
		},
		//页面初始化加载
		created() {
			debugger
			this.$emit("update:flowDialog", this.flowDialog)
		},
		//方法
		methods: {
			// 流程提交之前事件 返回值为bool ，如果是true 表示正常提交，否则异常
			beforeSubmit(){
				debugger
				this.$emit("update:comment", this.auditAdvice);
				return true;
			},
			// 提交之后事件
			afterSubmit(){
				return true;

			}
		}
	}
</script>

<style>
</style>
